#include "opengl.h"
#include "Vector.h"

//#define FLIKKER
#ifdef FLIKKER
#include <time.h>
#endif

enum attach
{
	TOP = 0,
	RIGHT,
	BOTTOM,
	LEFT
};
class Blok {
private:
	float				fSize;
	float				r,g,b;

	void	init(float x, float y, float z);


public:
	unsigned short int	iAttachedTo;
	unsigned short int	iAttachMode;
	float				fX, fY, fZ;


	Blok();
	Blok(GLfloat x, GLfloat y, GLfloat z);
	Blok(Vector *pos);

	void draw();

	void attachTo(unsigned short int to, unsigned short int attachMode);
	void setSize(float size);
	void setPos(float x, float y, float z);
	void setKleur(float r, float g, float b);

};